package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseVO;
import com.atguigu.jxc.entity.ReturnList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author WZhaokang
 * @date 2020/12/29 16:12
 */
@Repository
public interface ReturnListDao {
    int save(ReturnList returnList);

    List<ReturnList> returnListGoodsList(@Param("returnNumber") String returnNumber,@Param("supplierId") Integer supplierId, @Param("state") Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);

    void deleteByReturnListId(@Param("returnListId")Integer returnListId);

    List<ReturnList> list(String saleNumber, Integer customerId, String sTime, String eTime);

    List<PurchaseVO> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
